import { snippets } from "@/lib/generated/snippets";
import { Snippet } from "@/components/code";
import { Callout, Card, Cards, Steps, Tabs } from "nextra/components";
import UniversalTabs from "@/components/UniversalTabs";

# Running Your First Task

With your task defined, you can import it wherever you need to use it and invoke it with the `run` method.

<UniversalTabs items={["Python", "Typescript", "Go"]}>
  <Tabs.Tab title="Python">

<Snippet src={snippets.python.quickstart.run.run_a_task} />

</Tabs.Tab>
<Tabs.Tab title="Typescript">
<Snippet src={snippets.typescript.simple.run.running_a_task} />
</Tabs.Tab>
<Tabs.Tab title="Go">
<Snippet src={snippets.go.simple.main.running_a_task} />
</Tabs.Tab>
</UniversalTabs>

There are many ways to run a task, including:

- [Running a task with results](./run-with-results.mdx)
- [Enqueuing a task](./run-no-wait.mdx)
- [Scheduling a task](./scheduled-runs.mdx)
- [Scheduling a task with a cron schedule](./cron-runs.mdx)
